package com.my_musc_service.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Comment)实体类
 *
 * @author A.Dun
 * @since 2021-08-11 12:13:03
 */
@Deprecated
@Data
public class Comment implements Serializable {
    private static final long serialVersionUID = 678076158088345703L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer songListId;

    private Integer songId;
    /**
    * 当前评论的父评论id【默认0，顶级父id】
    */
    private Integer parentId;

    private Integer userId;

    private String comment;

    private String userName;

    /**
     * 在插入时自动填充数据创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
